Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a customizable footer #31

Merged
merged 2 commits into from
Mar 21, 2022
Merged

Add a customizable footer #31

merged 2 commits into from
Mar 21, 2022

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Mar 21, 2022

This PR adds a customizable footer.

By default it uses Markdown defined in the config/hyde.php, but for more advanced footers the Blade view can be customized directly.

config/hyde.php

/*
|--------------------------------------------------------------------------
| Footer Text
|--------------------------------------------------------------------------
*/

'footer' => [
  'enabled' => true,
  'markdown' => 'Site built with the Free and Open Source [HydePHP](https://github.com/hydephp/hyde).
                           License [MIT](https://github.com/hydephp/hyde/blob/master/LICENSE.md).'
],

resources\views\layouts\footer.blade.php

<footer class="py-4 px-6 w-full bg-slate-100 text-center mt-auto">
	<div class="prose text-center mx-auto">
		{!! App\Actions\ConvertsFooterMarkdown::execute() !!}
	</div>
</footer>

@caendesilva caendesilva merged commit f4684f2 into master Mar 21, 2022
@caendesilva caendesilva deleted the customizable-footer branch March 21, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant